<div class="row">
	<div class="col-md-12">
		<table class="table table-bordered" style="border: none;">
			<tr>
				<th colspan="4" class="text-center" style="border-top: none;">
					<h3>${data.name}</h3> <small>[No.] ${data.no}</small>
					<h5>
						<b class="text-danger">${data.status.value}</b>
					</h5>
				</th>
			</tr>
			<tr>
				<td class="text-center" width="115"><b>经&nbsp;&nbsp;办&nbsp;&nbsp;人</b></td>
				<td colspan="3">${data.jingban} <small>（联系方式：${data.jingbanPhone}）</small>
				</td>
			</tr>
			<#if roles.creator>
			<tr>
				<td class="text-center" width="115"><b>签订日期</b></td>
				<td>${data.signDate?string('yyyy-MM-dd')}</td>
				<td class="text-center" width="115"><b>办结日期</b></td>
				<td>${data.bjTime?string('yyyy-MM-dd')}</td>
			</tr>
			</#if>
			<tr>
				<td class="text-center" width="115"><b>建设单位</b></td>
				<td>${data.companyA}</td>
				<td class="text-center" width="115"><b>承建单位</b></td>
				<td>${data.companyB}</td>
			</tr>
			<#if data.type.collection>
			<tr>
				<td class="text-center"><b>项目实施单位</b></td>
				<td colspan="3">${data.doUnit!'-'}</td>
			</tr>
			</#if>
			<tr>
				<td class="text-center" width="115"><b>合同金额</b></td>
				<td width="350">${(data.priceString)!'-'}</td>
				<td class="text-center" width="115"><b>合同工期</b></td>
				<td><#if data.contractDays??> ${data.contractDays+' 天'} <#else> ${(data.contractStart?string("yyyy-MM-dd")+' 至 '+data.contractEnd?string("yyyy-MM-dd"))!''} </#if></td>
			</tr>
			<tr>
				<td class="text-center" width="115"><b>结算方式</b></td>
				<td colspan="3">${data.jiesuanWay}</td>
			</tr>
			<tr>
				<td class="text-center" width="115"><b>付款方式</b></td>
				<td colspan="3">${data.fukuanWay}</td>
			</tr>
			<tr>
				<td class="text-center" width="115"><b>工程内容</b></td>
				<td colspan="3">${data.mainContent}</td>
			</tr>
			<tr>
				<td class="text-center" width="115"><b>承包范围</b></td>
				<td colspan="3">${data.chengbaoFanwei}</td>
			</tr>
			<tr>
				<td colspan="4"></td>
			</tr>
			<tr>
				<td class="text-center" width="115"><b>项目负责人</b></td>
				<td>${data.xiangmuHeader.name!'-'}</td>
				<td class="text-center" width="115"><b>技经负责人</b></td>
				<td>${data.jijingHeader.name!'-'}</td>
			</tr>
			<tr>
				<td class="text-center" width="115"><b>实际工期</b></td>
				<td colspan="3">${(data.start?string('yyyy-MM-dd'))!'&lt;未知&gt;'}&nbsp;至&nbsp;${(data.end?string('yyyy-MM-dd'))!'&lt;未知&gt;'} <#if data.projecttimeChangeLog??> <a href="javascript:;" class="icon-list-alt projecttime-logs text-primary"></a>
					<div class="projecttime-chang-info hidden">
						<small>
							<table class="table table-hover table-striped margin-0" width="100%">
								<thead>
									<tr class="bg-primary">
										<th class="text-center" width="190">操作人员</th>
										<th class="">变更事由</th>
									</tr>
								</thead>
								<#list data.projecttimeChangeLog as log>
								<tr>
									<td class="text-center">${log.oper} <br> ${log.time}
									</td>
									<td style="word-break: break-all;">${(log.remark?replace('\n',' <br> '))!''}
									</td>
								</tr>
								</#list>
							</table>
						</small>
					</div> </#if>
				</td>
			</tr>
			<#if data.needZbMoney>
			<tr>
				<td class="text-center" width="115"><b>质保期</b></td>
				<td colspan="3">${data.zbLen}年</td>
			</tr>
			</#if> <#if data.type.collection && data.clearingReportTime>
			<tr>
				<td class="text-center" width="115"><b>上报结算金额</b></td>
				<td colspan="3">${(data.clearingReportPrice?string('currency'))!'-'} 元 （${(data.clearingReportTime?string('yyyy-MM-dd'))!''}）</td>
			</tr>
			</#if>
			<tr>
				<td class="text-center" width="115"><b>结算金额</b></td>
				<td><#if !data.clearingPrice??> <span class="text-danger">尚未结算</span> <#else> ${(data.clearingPrice?string('currency'))!(0?string('currency'))}（元） </#if>
				</td>
				<td class="text-center" width="115"><b>质保金</b></td>
				<td>
					<#if data.needZbMoney> 
						<#if !data.zbMoney??> 
							<span class="text-danger">需要质保金</span>
						<#else> 
							${((data.zbMoney.total!0)?string('currency'))!''}（元）
							<i class="icon-lightbulb icon-large" style="cursor: pointer; color: #f0ad4e; margin: 0 5px;" 
								data-content="
								开具时间：${(data.zbMoney.time?string('yyyy-MM-dd'))!'-'}
								&lt;br&gt;到期时间：${(data.zbMoney.backTime?string('yyyy-MM-dd'))!'-'}
								&lt;hr style='margin: 5px 0px;'&gt;
								备注：${(data.zbMoney.remark)!'-'}
								"></i>
				 		</#if> 
				 		<#if roles.canManageMainContract>
				 			<#include "app/contract/btn-of-back-money/contract-zb-money.ftl">
				 		</#if>
			 		<#else>
			 			-
			 		</#if>
				</td>
			</tr>
			<tr>
				<td class="text-center" width="115"><b>预付款保函</b></td>
				<td>
					<#if data.needYfMoney>
						<#if !data.yfMoney??>
							<span class="text-danger">需要预付款保函</span>
						<#else>
							${((data.yfMoney.total!0)?string('currency'))!''}（元）
							<i class="icon-lightbulb icon-large" style="cursor: pointer; color: #f0ad4e; margin: 0 5px;" 
								data-content="
								开列时间：${(data.yfMoney.time?string('yyyy-MM-dd'))!'-'}
								&lt;br&gt;到期时间：${(data.yfMoney.backTime?string('yyyy-MM-dd'))!'-'}
								&lt;hr style='margin: 5px 0px;'&gt;
								备注：${(data.yfMoney.remark)!'-'}
								"></i>
						</#if>
						<#if roles.canManageMainContract>
							<#include "app/contract/btn-of-back-money/contract-yf-money.ftl">
						</#if>
					<#else>
						-
					</#if>
				</td>
				<td class="text-center" width="115"><b>履约保函</b></td>
				<td>
					<#if data.needLyMoney>
						<#if !data.lyMoney??>
							<span class="text-danger">需要履约保函</span>
						<#else>
							${((data.lyMoney.total!0)?string('currency'))!''}（元）
							<i class="icon-lightbulb icon-large" style="cursor: pointer; color: #f0ad4e; margin: 0 5px;" 
								data-content="
								开列时间：${(data.lyMoney.time?string('yyyy-MM-dd'))!'-'}
								&lt;br&gt;到期时间：${(data.lyMoney.backTime?string('yyyy-MM-dd'))!'-'}
								&lt;hr style='margin: 5px 0px;'&gt;
								备注：${(data.lyMoney.remark)!'-'}
								"></i>
						</#if>
						<#if roles.canManageMainContract>
							<#include "app/contract/btn-of-back-money/contract-ly-money.ftl">
						</#if>
					<#else>
						-
					</#if>
				</td>
			</tr>
			<tr>
				<td colspan="4"></td>
			</tr>
			<tr>
				<td class="text-center" width="115"><b>备注</b></td>
				<td colspan="3">${data.remark!'-'}</td>
			</tr>
		</table>
	</div>
</div>

<div class="row bid-files">
	<!-- 合同文件 -->
	<#if data.contractFile??>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr height="50">
				<td class="text-center" width="75"><i class="icon-copy icon-2x text-success"></i> <br> <b class="text-success"> <small>[合同文件]</small>
				</b></td>
				<td><a href="${request.contextPath}/viewer/1/${data.contractFile.id}" target="_blank"> ${data.contractFile.fileName}${data.contractFile.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${data.contractFile.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small> <small>[${data.contractFile.fileSizeString}]</small>
					</div></td> <#if roles.canRemoveFile>
				<td class="text-center" width="50"><a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-contract-file" data-id="${data.contractFile.id}" data-contract-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a></td> </#if>
			</tr>
		</table>
	</div>
	<#elseif roles.canUploadContractFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75"><i class="icon-copy icon-2x text-success"></i> <br> <b class="text-success"> <small>[合同文件]</small>
				</b></td>
				<td class="text-center common-file-upload" data-file-type="F200_CONTRACT_FILE" data-contract-id="${data.id}" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;"><i class="icon-upload icon-large"></i> 添加</td>
			</tr>
		</table>
	</div>
	</#if>

	<!-- 竣工资料 -->
	<#if data.jgFile??>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr height="50">
				<td class="text-center" width="75"><i class="icon-copy icon-2x text-success"></i> <br> <b class="text-success"> <small>[竣工资料]</small>
				</b></td>
				<td><a href="${request.contextPath}/viewer/1/${data.jgFile.id}" target="_blank"> ${data.jgFile.fileName}${data.jgFile.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${data.jgFile.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small> <small>[${data.jgFile.fileSizeString}]</small>
					</div></td> <#if roles.canRemoveFile>
				<td class="text-center" width="50"><a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-contract-file" data-id="${data.jgFile.id}" data-contract-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a></td> </#if>
			</tr>
		</table>
	</div>
	<#elseif roles.canUploadJungongFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75"><i class="icon-copy icon-2x text-success"></i> <br> <b class="text-success"> <small>[竣工资料]</small>
				</b></td>
				<td class="text-center common-file-upload" data-file-type="F201_CONTRACT_COMPLETE_FILE" data-contract-id="${data.id}" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;"><i class="icon-upload icon-large"></i> 添加</td>
			</tr>
		</table>
	</div>
	</#if>

	<!-- 结算资料 -->
	<#if data.jszlFile??>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr height="50">
				<td class="text-center" width="75"><i class="icon-copy icon-2x text-success"></i> <br> <b class="text-success"> <small>[结算资料]</small>
				</b></td>
				<td><a href="${request.contextPath}/viewer/1/${data.jszlFile.id}" target="_blank"> ${data.jszlFile.fileName}${data.jszlFile.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${data.jszlFile.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small> <small>[${data.jszlFile.fileSizeString}]</small>
					</div></td> <#if roles.canRemoveFile>
				<td class="text-center" width="50"><a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-contract-file" data-id="${data.jszlFile.id}" data-contract-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a></td> </#if>
			</tr>
		</table>
	</div>
	<#elseif roles.canUploadJungongFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75"><i class="icon-copy icon-2x text-success"></i> <br> <b class="text-success"> <small>[结算资料]</small>
				</b></td>
				<td class="text-center common-file-upload" data-file-type="F201_CONTRACT_COMPLETE_FILE" data-contract-id="${data.id}" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;"><i class="icon-upload icon-large"></i> 添加</td>
			</tr>
		</table>
	</div>
	</#if>

	<!-- 附件资料 -->
	<#if data.otherFiles??> <#list data.otherFiles as f>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr>
				<td class="text-center" width="75"><i class="icon-copy icon-2x text-success"></i> <br> <b class="text-success"> <small>[${f.type.value}]</small>
				</b></td>
				<td><a href="${request.contextPath}/viewer/1/${f.id}" target="_blank"> ${f.fileName}${f.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${f.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small> <small>[${f.fileSizeString}]</small>
					</div></td> <#if roles.canRemoveFile>
				<td class="text-center" width="50"><a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-contract-file" data-id="${f.id}" data-contract-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a></td> </#if>
			</tr>
		</table>
	</div>
	</#list> <#elseif roles.canUploadOtherFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75"><i class="icon-copy icon-2x text-success"></i> <br> <b class="text-success"> <small>[附件资料]</small>
				</b></td>
				<td class="text-center common-file-upload" data-file-type="Z900_OTHER" data-contract-id="${data.id}" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;"><i class="icon-upload icon-large"></i> 添加</td>
			</tr>
		</table>
	</div>
	</#if>
</div>